package cn.tedu._04mybatis.mapper;

import cn.tedu._04mybatis.pojo.entity.User;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;


/**
 * 1.Mapper注解是mybatis框架的注解
 * 2.作用：告诉框架为该接口创建实现类
 */
@Mapper
public interface UserMapper {

    @Insert("INSERT INTO user(username,password,nickname,created) VALUES (#{username},#{password},#{nickname},#{created})")
    void insert(User user);
}
